<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
    *{
        margin: 0;
        padding: 0
    }
    body{
        min-width: 1280px !important;
        max-width: 1920px;
        background-repeat: repeat;
        height: 965px;
    }
    .news{
        height: inherit;
        background: url(./img/news/bg-news.jpg) center top no-repeat;
    }
    .news .title{
        width: 1160px;
        margin: 0 auto;
        text-align: left;
        padding-top: 15px
    }
    .news .title .title1{
        height: 116px;
        background: url(./img/news/logo.png) left top no-repeat;
    }
    .news .title .title2{
        height: 40px;
        background: url(./img/news/logo-title.png) left top no-repeat;
    }
    .news .main{
        width: 1160px;
        margin: 0 auto;
        text-align: left;
        margin-top: 140px;
    }
    .news .main .left{
        width: 274px;
        height: 494px;;
        background: url(./img/news/bg-news-aside.jpg) center top no-repeat;
        text-align: center;
        padding: 10px 0;
        display: inline-block;
        vertical-align: top;
    }
    .news .main .left a,.news .main .left>div{
        display: inline-block;
        margin-top: 20px
    }
    .news .main .left div{
        text-align: center
    }
    .news .main .left div>div{
        width: 188px;
        height: 188px;
        background: white;
        margin: 0 auto;
        padding: 5px;
    }
    .news .main .left div>div img{
        width: inherit;
        height: inherit;
    }
    .news .main .left div>p{
        text-align: center;
        color: #caae53;
        font-size: 18px;
        line-height: 1.2;
        margin: 15px auto;
    }
    .news .main .right{
        display: inline-block;
        vertical-align: top;
        background: url(./img/news/news-png-bg.png) repeat;
        width: 875px;
        min-height: 600px;
    }
    .news .main .right .news_title{
        width: 100%;
        height: 78px;
        background: url(./img/news/bg-news-content-top.jpg) no-repeat;
        background-size: 100%;
        display: block
    }
    .news .main .right .news_title .news_title_title{
        margin-left: 40px;
        display: inline-block;
        background: url(./img/news/title-news-content-top.png) left center no-repeat;
        width: 180px;
        height: 100%;
        vertical-align: top
    }
    .news .main .right .news_title .Breadcrumb{
        display: inline-block;
        height: 100%;
        padding-top: 38px;
        font-size: 14px;
        color: #caae49;
    }
    .news .main .right .news_title a{
        text-decoration: none;
        color: #caae49;
    }
    .news .main .right .news_title a:hover{
        text-decoration: underline;
    }
    .news .main .right .nav{
        display: block;
        width: 80%;
        margin: 0 auto;
        padding: 20px 0
    }
    .news .main .right .nav ul{
        display: block;
        width: 100%;
        text-align: center;
        list-style: none
    }
    .news .main .right .nav ul li{
        display: inline-block;
        width: 24%;
        text-align: center
    }
    .news .main .right .nav ul li.active{
        background: url(./img/news/news-list-li.png) center center no-repeat;
    }
    .news .main .right .nav ul li.active a{
        color: #caae53
    }
    .news .main .right .nav ul li a{
        text-decoration: none;
        display: block;
        font-size: 18px;
        font-weight: bold;
        height: 35px;
        line-height: 34px;
        color: #061548;
        letter-spacing: 2px;
        margin:  0 50px
    }
    .news .main .right .news_text{
        display: block;
        width: 80%;
        margin: 0 auto;
        margin-bottom: 40px;
    }
    .news .main .right .news_text ul{
        width: 100%;
        list-style: none;
    }
    .news .main .right .news_text ul li{
        display: block;
        width: 100%;
        border-bottom: 1px dotted #000;
        font-size: 14px;
        line-height: 44px;
        color: #061548;
        padding-top: 23px;
    }
    .news .main .right .news_text ul li strong{
        margin-right: 15px;
        display: inline-block;
    }
    .news .main .right .news_text ul li a{
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: #061548;
        text-decoration: none;
    }
    .news .main .right .news_text ul li a:hover{
        text-decoration: underline
    }
    .news .main .right .news_text ul li span{
        float: right;
    }
    .news .main .right .news_text ul li span::after{
        content: "";
        clear: both;
        display: block;
        line-height: 0; 
    }
    .news .main .right .page{
        display: block;
        width: 80%;
        margin: 0 auto;
    }
    .news .main .right .page ul{
        list-style: none; 
        text-align: right
    }
    .news .main .right .page ul li{
        display: inline-block;
        padding: 0 10px;
        font-size: 14px;
        line-height: 30px;
        cursor: pointer;
        text-decoration: none;
        color: #161616;
    }
    .news .main .right .page ul li.active{
        font-weight: bold;
        color: #C01203;
    }
    /* .news .main .right .page ul li a{
        text-decoration: none;
        color: #161616;
    } */
    .news .main .right .page ul li.hidden{
        display: none
    }
</style>
<body>
    <div class="news">
        <div class="title">
            <div class="title1"></div>
            <div class="title2"></div>
        </div>
        <div class="main">
            <div class="left">
                <a href=""><img src="./img/news/btn-news-dl-ios.png" alt=""></a>
                <a href=""><img src="./img/news/btn-news-dl-android.png" alt=""></a>
                <div>
                    <div><img src="./img/news/qrcode-dl.png" alt=""></div>
                    <p>扫一扫下载游戏</p>
                </div>
            </div>
            <div class="right">
                <div class="news_title">
                    <div class="news_title_title"></div>
                    <div class="Breadcrumb">
                        <span>你当前的位置</span>
                        <a href="">首页</a>
                        <b>></b>
                        <span>新闻</span>
                    </div>
                </div>
                <div class="nav">
                        <ul>
                            <li class="active"><a href="">最新</a></li>
                            <li><a href="">新闻</a></li>
                            <li><a href="">活动</a></li>
                            <li><a href="">公告</a></li>
                        </ul>
                </div>
                <div class="news_text">
                    <ul>
                        <li><strong>[公告]</strong><a href="">《FGO》手游随机抽取类玩法概率公示</a><span>[2017-05-31]</span></li>
                        <li><strong>[公告]</strong><a href="">活动维护公告（2018年11月19日 14时）</a><span>[2018-11-16]</span></li>
                        <li><strong>[公告]</strong><a href="">『幕间物语活动 第2弹』开放！</a><span>[2018-11-16]</span></li>
                        <li><strong>[公告]</strong><a href="">剧场版「Fate/stay night [Heaven's Feel]」纪念活动</a><span>[2018-11-16]</span></li>
                        <li><strong>[公告]</strong><a href="">【限时】「复刻：超极☆大南瓜村 ～踏上冒险之旅 轻量版」</a><span>[2018-11-09]</span></li>
                    </ul>
                </div>
                <div class="page">
                    <ul>
                        <li>上一页</li>
                        <li>...</li>
                        <li class="active">3</li>
                        <li>4</li>
                        <li>5</li>
                        <li>6</li>
                        <li>7</li>
                        <li>...</li>
                        <li>下一页</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <script src="./js/jquery-1.11.3.js"></script>
    <script>
        $('.news .main .right .page ul').click(function(e){
            if($(e.target)[0]==$('.news .main .right .page ul li:first-child')[0]){
                if($('.news .main .right .page ul li:nth-child(3)').html()>1){
                    $('.news .main .right .page ul li:nth-child(3)').html($('.news .main .right .page ul li:nth-child(3)').html()-1)
                    $('.news .main .right .page ul li:nth-child(4)').html($('.news .main .right .page ul li:nth-child(4)').html()-1)
                    $('.news .main .right .page ul li:nth-child(5)').html($('.news .main .right .page ul li:nth-child(5)').html()-1)
                    $('.news .main .right .page ul li:nth-child(6)').html($('.news .main .right .page ul li:nth-child(6)').html()-1)
                    $('.news .main .right .page ul li:nth-child(7)').html($('.news .main .right .page ul li:nth-child(7)').html()-1)
                    $('.news .main .right .page ul li:nth-child(2)').removeClass("hidden")
                    if($('.news .main .right .page ul li:nth-child(3)').html()<=2){
                        $('.news .main .right .page ul li:nth-child(2)').addClass("hidden")
                    }
                    if($('.news .main .right .page ul li:nth-child(3)').html()<=1){
                        $('.news .main .right .page ul li:nth-child(1)').addClass("hidden")
                    }
                }
            }else if($(e.target)[0]==$('.news .main .right .page ul li:last-child')[0]){
                if($('.news .main .right .page ul li:nth-child(3)').html()>=1){
                    $('.news .main .right .page ul li:nth-child(3)').html(parseInt($('.news .main .right .page ul li:nth-child(3)').html())+1)
                    $('.news .main .right .page ul li:nth-child(4)').html(parseInt($('.news .main .right .page ul li:nth-child(4)').html())+1)
                    $('.news .main .right .page ul li:nth-child(5)').html(parseInt($('.news .main .right .page ul li:nth-child(5)').html())+1)
                    $('.news .main .right .page ul li:nth-child(6)').html(parseInt($('.news .main .right .page ul li:nth-child(6)').html())+1)
                    $('.news .main .right .page ul li:nth-child(7)').html(parseInt($('.news .main .right .page ul li:nth-child(7)').html())+1)
                    $('.news .main .right .page ul li:nth-child(2)').removeClass("hidden")
                    $('.news .main .right .page ul li:nth-child(1)').removeClass("hidden")
                }
            }
        })
    </script>
</body>
</html>